package com.jarvis.order.feign;

import com.jarvis.common.utils.R;
import com.jarvis.order.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "jarvis-user",url ="localhost:13000")
public interface UserFeignService {

    @RequestMapping("/chat/{userId}")
    public UserVo getUser(@PathVariable("userId") long userId);

    @RequestMapping("/addVipDay")
    public R addVipDay(@RequestParam("userId") long userId,@RequestParam("day") int day);

}
